package _0927.object;

class Car{
	String brand;
	String type;
	String color;
	public Car(String brand, String type, String color) {
		super();
		this.brand = brand;
		this.type = type;
		this.color = color;
	}
	@Override
	public String toString() {
		return "Car [brand=" + brand + ", color=" + color + "]";
	}
}

public class ToStringDemo {
	public static void main(String[] args) {
		Car c = new Car("A","B","C");
		
		System.out.println(c);
		System.out.println(c.toString());
	}
}
